/**
 * 
 */
const router = require('express').Router()
const db = require('../../dbconfig')

router.post('/workDetails',(req,res) => {
    // 获取前端传过来的用户名
    let val = req.query.value
    // sql语句拼接
    let sql = "select * from artisticworks where" + " " + "id=" + val
    db.query(sql, (err, data) => {
        res.send(data)
        if (err) throw err
    })
})

module.exports = router